home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: argc/argv & switches
- Date: 9 Mar 96 23:45:48 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.826415148@rscernix>
- References: <4h2j8j$9gn@milo.freenet.vancouver.bc.ca> <danpop.825593142@rscernix> <313E0094.167EB0E7@fore.com> <4hl52oINNa4l@anvil.ugrad.cs.ubc.ca> <danpop.826238070@rscernix> <4ho9dv$bcb@castle.nando.net>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4ho9dv$bcb@castle.nando.net> actuary@nando.net (Bill McCarthy) writes:
-
- >While we're on the standard, Dan, is the "missing period" contained on
- >page 26 (6.1.3.1)?
-
- Dunno. I don't have _any_ book with Schildt's name on the cover, not
- even this one. The missing period was discussed some time ago on
- comp.std.c, when someone thought he found a mistake in the standard,
- but it turned out that it was a mistake in the book (one of the few
- which are not imputable to Schildt).
-
- >And (2), negative numbers cannot be doubles? From experience,
- >this appears wrong. But the only sign I see in the syntax is in the
- >exponent-part.
-
- This is correct. An integer or floating point constant doesn't include
- the sign. When you write -1.23 you have a constant expression: the
- unary minus operator applied to the 1.23 constant.
-
- In most cases, this is transparent, but there is one exception:
- consider an implementation with INT_MAX = 32767 and INT_MIN = -32768.
- If you write -32768, the type of this constant expression is _long_,
- because 32768 cannot be represented as int. So, if you need this value
- with the type int, you have to write it as (-32767 - 1). Well, normally
- you can simply use INT_MIN instead, but somewhere in <limits.h> INT_MIN
- itself has to be defined somehow and this is how it is usually defined,
- either explicitly or as (-INT_MAX - 1).
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-